package net.sunofbeach.blog.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.sunofbeach.blog.pojo.User;
import net.sunofbeach.blog.pojo.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Bing
 * @since 2021-11-24
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 条件分页查询用户列表
     * @param pageParam
     * @param wrapper
     * @return
     */
    List<UserVO> selectPageByUserVO(@Param("pageParam") Page<UserVO> pageParam, @Param(Constants.WRAPPER) QueryWrapper<UserVO> wrapper);
}
